Skip to content

[blogger] persist post-outcomes.json runtime state - #130

Merged
Smetools merged 2 commits into
mainfrom
hassan/blogger-20260713
Jul 13, 2026
Merged

[blogger] persist post-outcomes.json runtime state#130
Smetools merged 2 commits into
mainfrom
hassan/blogger-20260713

Conversation

@Smetools

@Smetools Smetools commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Housekeeping only: persists routines/blogger/post-outcomes.json (the blogger loop's runtime memory — verdicts/clicks/impressions per shipped post) which had never been committed before. Ship swept it up as an uncommitted file.
  • Also removes 6 files (a draft + template + images for an unrelated mahdar-ijtimaa-majlis-idara-ar topic) that ship's same sweep accidentally added in the first commit here — leftover from an interrupted earlier run, targeting a keyword this session's SERP research rejected. Net effect after both commits: only the JSON state file lands.

No code changes, no blog content changes (PR #129 already shipped and merged those separately).

🤖 Generated with Claude Code

https://claude.ai/code/session_01PctRre9jyDDFkr3JuSZoGH

Summary by CodeRabbit

  • Chores
    • Added a structured record for tracking published blog content, including topics, formats, performance metrics, outcomes, and review status.
    • Included aggregate content statistics and verification timestamps to support consistent reporting and historical analysis.
    • No changes to the customer-facing application experience.

Smetools and others added 2 commits July 13, 2026 19:45
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
These 6 files (draft, template docx, hero/og images for
mahdar-ijtimaa-majlis-idara-ar) got swept into the previous ship commit by
mistake -- they're leftover from an interrupted earlier run of this same
blogger routine, targeting a keyword this session's live SERP research
rejected (navigational, dominated by real NGOs' own board-minutes
archives). Not part of the namuthaj refresh this PR ships. Preserved in
git history (be9e555) if worth revisiting later.
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
knowcap-landing Building Building Preview, Comment Jul 13, 2026 4:47pm

Request Review

@Smetools
Smetools merged commit 76297e2 into main Jul 13, 2026
1 of 3 checks passed
@Smetools
Smetools deleted the hassan/blogger-20260713 branch July 13, 2026 16:48
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e6a63977-d9f1-4dbc-9ff8-bcb9e567d04c

📥 Commits

Reviewing files that changed from the base of the PR and between 2163b73 and e942e0d.

📒 Files selected for processing (1)
  • routines/blogger/post-outcomes.json

📝 Walkthrough

Walkthrough

Adds a versioned blogger loop memory JSON file with scoring metadata, a winning-pattern narrative, per-post performance outcomes and diagnostics, and aggregate verdict counts with verification timestamps.

Changes

Blogger outcome tracking

Layer / File(s) Summary
Outcome metadata and winning pattern
routines/blogger/post-outcomes.json
Defines schema and snapshot provenance metadata, plus the current winning AR “محضر” content pattern and keyword evaluation constraints.
Post results and aggregate summary
routines/blogger/post-outcomes.json
Adds standardized records for blog post timing, classification, performance metrics, verdicts, diagnostic flags, and aggregate outcome totals.

Estimated code review effort: 3 (Moderate) | ~15–30 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hassan/blogger-20260713

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Smetools added a commit that referenced this pull request Jul 16, 2026
…ncile entry count (#132)

R5 (approved): burn-state.json's posts_this_week was purely agent-narrated
(AGENT.md/ROUTINE.md said `posts_this_week++`, no code enforced it) and drifted
silently -- it read 1 for week_start=2026-07-05 while post-outcomes.json shows
2 real posts published that week (jadwal-aamal-ijtimaa-ar 07-06, how-to-do-
meeting-minutes 07-08). Fix: correct the value to 2 now, add a _schema_note
inside burn-state.json documenting it must ALWAYS be recomputed from
post-outcomes.json (never hand-incremented), and update AGENT.md + this repo's
ROUTINE.md prose (the only "logic" that ever set this field) to match. Promoted
burn-state.json from gitignored to tracked (same rationale as post-outcomes.json
in PR #130) so future drift shows up in a PR diff instead of vanishing untracked.
total_posts (8) is separately and visibly stale vs the real count (20) --
flagged in the file's own note, out of scope for this fix.

R6 (approved): reconciled post-outcomes.json's entry count. True count = 20
(node JSON.parse: posts.length=20, matches the file's own summary.total_posts:
20; no duplicate slugs). The ~19-vs-20 gap a direct read produced is best
explained by one malformed entry (knowcap-vs-read-ai-otter-fireflies-mena-
comparison) that has DUPLICATE JSON KEYS (impressions_28d/avg_pos_28d each
appear twice -- stale pre-refresh values left in alongside the 2026-06-29
refresh's appended values). Not a duplicate OBJECT/entry, so per instructions
this is flagged, not silently edited -- left untouched for Hassan's own review.


Claude-Session: https://claude.ai/code/session_01L6te4iV4hTVLD1CqKVfjCz

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant